package com.ruoyi.shop.member.mapper;

import java.util.List;
import com.ruoyi.shop.member.domain.ShopMemberTrace;

/**
 * 会员轨迹Mapper接口
 * 
 * @author xuxiang
 * @date 2023-06-13
 */
public interface ShopMemberTraceMapper 
{
    /**
     * 查询会员轨迹
     * 
     * @param traceId 主键
     * @return 会员轨迹
     */
    public ShopMemberTrace selectTraceById(Long traceId);

    /**
     * 查询会员轨迹列表
     * 
     * @param shopMemberTrace 会员轨迹
     * @return 会员轨迹集合
     */
    public List<ShopMemberTrace> selectTraceList(ShopMemberTrace shopMemberTrace);
    
    
	/**
	 * 查询首条记录
	 * 
	 * @param favor
	 * @return
	 */
	public ShopMemberTrace selectFirst(ShopMemberTrace shopMemberTrace);

	/**
	 * 新增会员轨迹
	 * 
	 * @param shopMemberTrace 会员轨迹
	 * @return 结果
	 */
	public int insertTrace(ShopMemberTrace shopMemberTrace);

    /**
     * 修改会员轨迹
     * 
     * @param shopMemberTrace 会员轨迹
     * @return 结果
     */
    public int updateTrace(ShopMemberTrace shopMemberTrace);

	/**
	 * 删除会员轨迹
	 * 
	 * @param traceId 主键
	 * @return 结果
	 */
	public int deleteTraceById(Long traceId);

    /**
     * 批量删除会员轨迹
     * 
     * @param memberId 会员ID
     * @return 结果
     */
    public int deleteTraceByMember(Long memberId);
}
